package marlon.smsbatcheditor.model;

import android.database.Cursor;

/**
 * 
 * @author marlonyao<yaolei135@gmail.com>
 */
public class Sms {
	private long id;
	private String address;
	private String body;
	private long threadId;
	private long date;

	public Sms(Cursor cursor) {
		id = cursor.getLong(cursor.getColumnIndexOrThrow("_id"));
		threadId = cursor.getLong(cursor.getColumnIndexOrThrow("thread_id"));
		address = cursor.getString(cursor.getColumnIndexOrThrow("address"));
		body = cursor.getString(cursor.getColumnIndexOrThrow("body"));
		date = cursor.getLong(cursor.getColumnIndexOrThrow("date"));
	}
	
	public long getId() {
		return id;
	}
	
	public long getThreadId() {
		return threadId;
	}
	
	public String getBody() {
		return body;
	}
	
	public String getAddress() {
		return address;
	}
	
	public long getDate() {
		return date;
	}
}
